# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=pssh
pkgver=2.3.4
pkgrel=2
pkgdesc="PSSH provides parallel versions of OpenSSH and related tools: pssh, pscp, prsync, pnuke, and pslurp"
url="https://github.com/lilydjwg/pssh"
arch="noarch"
license="BSD-3-Clause"
depends="python3 cmd:ssh"
makedepends="py3-setuptools"
checkdepends="py3-tox"
options="!check" # failing test
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/pssh/archive/v2.3.4.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -d "$pkgdir"/usr/libexec/pssh
	mv "$pkgdir"/usr/bin/pssh-askpass "$pkgdir"/usr/libexec/pssh
}

sha512sums="7abf327ca53dda2402465254e447eb837babdd2b4d865abb5b52a1135bd234694b84c1148cb3e4ed0198271ed29333fc1b5d0d01dc653fcf6d3e5b9f170b9d4e  pssh-2.3.4.tar.gz"
